extends "../changmen-2/changmen-2.gd"

func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("<唯一>增加全体友军(含召唤物)：暴击15%，冷却15%，对重樱舰娘加成翻倍", "重樱舰队旗舰")

func _upS():
	._upS()
	for i in getAllChas(2):
		if not i.hasBuff("b_nagato"):
			if i.get("camp") == "重樱":
				castBuff(i, b_nagato.new(true))
			else:
				castBuff(i, b_nagato.new(false))

class b_nagato:
	extends "../../../../azurlane_ctrl/AzurBuff.gd"
	func _init(flag = false):
		attInit()
		buffName = "重樱舰队旗舰"
		dispel = 2
		id = "b_nagato"
		if not flag:
			att.cri= 0.15
			att.cd= 0.15
		else:
			att.cri= 0.3
			att.cd= 0.3
	func _connect():
		if masCha.camp == "重樱" and casCha.upgraded == 1:
			att.suck = 0.15